/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import entities.Salary;
import java.util.Vector;
import javax.swing.ComboBoxModel;

/**
 *
 * @author MinhDuc
 */
public class SalaryGradeComboBoxModel extends SalaryDetailListModel implements ComboBoxModel<Salary> {

    private Salary salary;

    @Override
    public void setSelectedItem(Object anItem) {
        if (anItem instanceof Salary) {
            salary = (Salary) anItem;
            data.add(salary);
        }
    }

    @Override
    public Object getSelectedItem() {
        return salary;
    }
}
